package runnerworm.core;

/**
 * <p>Title: AboutAvailableEvent</p>
 * <p>Description: The event that will hold the text to be shown on the about screen.</p>
 * @author Guilherme Mauro Germoglio Barbosa
 */

public class AboutAvailableEvent
    extends AvailableEvent {

  /**
   * The about text.
   */
  private String aboutText;

  /**
   * Will need the source and the about text.
   * @param source The event's source.
   * @param aboutText The text to be shown.
   */
  public AboutAvailableEvent(AvailableEventLauncher source, String aboutText) {
    super(source, ABOUT_AVAILABLE);
    this.aboutText = aboutText;
  }

  /**
   * Returns the text.
   * @return The text that is to be shown on the about screen.
   */
  public String getAboutText() {
    return aboutText;
  }
}
